package com.sws.orderMS.pojo;

public class Manager extends User {

	public Manager() {
	}
	
	public Manager(long id, String name, String username,
			String password, String email, String phone, 
			String address, String note, boolean isManager,
			int statusId) {
		this.id = id;
		this.name = name;
		this.username = username;
		this.password = password;
		this.email = email;
		this.phone = phone;
		this.address = address;
		this.note = note;
		this.isManager = true;
		this.currentStatus = statusId;
	}
	
	public boolean equals(Object obj) {
		if (!(obj instanceof Manager)) {
			return false;
		}
		Manager manager = (Manager)obj;
		return this.id == manager.getId();
	}
	
	public int hashCode() {
		String str = this.id + "";
		return str.hashCode();
	}
	
}
